Optimal. Leaf size=153 \[ \frac{\text{PolyLog}\left (2,-\frac{2 c x}{b-\sqrt{b^2-4 a c}}\right )}{\sqrt{b^2-4 a c}}-\frac{\text{PolyLog}\left (2,-\frac{2 c x}{\sqrt{b^2-4 a c}+b}\right )}{\sqrt{b^2-4 a c}}+\frac{\log (x) \log \left (\frac{2 c x}{b-\sqrt{b^2-4 a c}}+1\right )}{\sqrt{b^2-4 a c}}-\frac{\log (x) \log \left (\frac{2 c x}{\sqrt{b^2-4 a c}+b}+1\right )}{\sqrt{b^2-4 a c}} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.137424, antiderivative size = 153, normalized size of antiderivative = 1., number of steps used = 6, number of rules used = 3, integrand size = 15, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.2, Rules used = {2357, 2317, 2391} \[ \frac{\text{PolyLog}\left (2,-\frac{2 c x}{b-\sqrt{b^2-4 a c}}\right )}{\sqrt{b^2-4 a c}}-\frac{\text{PolyLog}\left (2,-\frac{2 c x}{\sqrt{b^2-4 a c}+b}\right )}{\sqrt{b^2-4 a c}}+\frac{\log (x) \log \left (\frac{2 c x}{b-\sqrt{b^2-4 a c}}+1\right )}{\sqrt{b^2-4 a c}}-\frac{\log (x) \log \left (\frac{2 c x}{\sqrt{b^2-4 a c}+b}+1\right )}{\sqrt{b^2-4 a c}} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 2357
Rule 2317
Rule 2391
Rubi steps
\begin{align*} \int \frac{\log (x)}{a+b x+c x^2} \, dx &=\int \left (\frac{2 c \log (x)}{\sqrt{b^2-4 a c} \left (b-\sqrt{b^2-4 a c}+2 c x\right )}-\frac{2 c \log (x)}{\sqrt{b^2-4 a c} \left (b+\sqrt{b^2-4 a c}+2 c x\right )}\right ) \, dx\\ &=\frac{(2 c) \int \frac{\log (x)}{b-\sqrt{b^2-4 a c}+2 c x} \, dx}{\sqrt{b^2-4 a c}}-\frac{(2 c) \int \frac{\log (x)}{b+\sqrt{b^2-4 a c}+2 c x} \, dx}{\sqrt{b^2-4 a c}}\\ &=\frac{\log (x) \log \left (1+\frac{2 c x}{b-\sqrt{b^2-4 a c}}\right )}{\sqrt{b^2-4 a c}}-\frac{\log (x) \log \left (1+\frac{2 c x}{b+\sqrt{b^2-4 a c}}\right )}{\sqrt{b^2-4 a c}}-\frac{\int \frac{\log \left (1+\frac{2 c x}{b-\sqrt{b^2-4 a c}}\right )}{x} \, dx}{\sqrt{b^2-4 a c}}+\frac{\int \frac{\log \left (1+\frac{2 c x}{b+\sqrt{b^2-4 a c}}\right )}{x} \, dx}{\sqrt{b^2-4 a c}}\\ &=\frac{\log (x) \log \left (1+\frac{2 c x}{b-\sqrt{b^2-4 a c}}\right )}{\sqrt{b^2-4 a c}}-\frac{\log (x) \log \left (1+\frac{2 c x}{b+\sqrt{b^2-4 a c}}\right )}{\sqrt{b^2-4 a c}}+\frac{\text{Li}_2\left (-\frac{2 c x}{b-\sqrt{b^2-4 a c}}\right )}{\sqrt{b^2-4 a c}}-\frac{\text{Li}_2\left (-\frac{2 c x}{b+\sqrt{b^2-4 a c}}\right )}{\sqrt{b^2-4 a c}}\\ \end{align*}
Mathematica [A] time = 0.0562416, size = 144, normalized size = 0.94 \[ \frac{\text{PolyLog}\left (2,\frac{2 c x}{\sqrt{b^2-4 a c}-b}\right )-\text{PolyLog}\left (2,-\frac{2 c x}{\sqrt{b^2-4 a c}+b}\right )+\log (x) \left (\log \left (\frac{-\sqrt{b^2-4 a c}+b+2 c x}{b-\sqrt{b^2-4 a c}}\right )-\log \left (\frac{\sqrt{b^2-4 a c}+b+2 c x}{\sqrt{b^2-4 a c}+b}\right )\right )}{\sqrt{b^2-4 a c}} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A] time = 0.066, size = 177, normalized size = 1.2 \begin{align*}{\ln \left ( x \right ) \left ( \ln \left ({ \left ( -2\,cx+\sqrt{-4\,ac+{b}^{2}}-b \right ) \left ( -b+\sqrt{-4\,ac+{b}^{2}} \right ) ^{-1}} \right ) -\ln \left ({ \left ( 2\,cx+\sqrt{-4\,ac+{b}^{2}}+b \right ) \left ( b+\sqrt{-4\,ac+{b}^{2}} \right ) ^{-1}} \right ) \right ){\frac{1}{\sqrt{-4\,ac+{b}^{2}}}}}+{{\it dilog} \left ({ \left ( -2\,cx+\sqrt{-4\,ac+{b}^{2}}-b \right ) \left ( -b+\sqrt{-4\,ac+{b}^{2}} \right ) ^{-1}} \right ){\frac{1}{\sqrt{-4\,ac+{b}^{2}}}}}-{{\it dilog} \left ({ \left ( 2\,cx+\sqrt{-4\,ac+{b}^{2}}+b \right ) \left ( b+\sqrt{-4\,ac+{b}^{2}} \right ) ^{-1}} \right ){\frac{1}{\sqrt{-4\,ac+{b}^{2}}}}} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [F(-2)] time = 0., size = 0, normalized size = 0. \begin{align*} \text{Exception raised: ValueError} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [F] time = 0., size = 0, normalized size = 0. \begin{align*}{\rm integral}\left (\frac{\log \left (x\right )}{c x^{2} + b x + a}, x\right ) \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F] time = 0., size = 0, normalized size = 0. \begin{align*} \int \frac{\log{\left (x \right )}}{a + b x + c x^{2}}\, dx \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [F] time = 0., size = 0, normalized size = 0. \begin{align*} \int \frac{\log \left (x\right )}{c x^{2} + b x + a}\,{d x} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]